//
//  EDJAppUpdate.h
//  edaijia
//
//  Created by wangfang on 14-7-10.
//
//

#import <Foundation/Foundation.h>

typedef void(^UpdateBlock)();

@interface ICAppUpdate : NSObject


+ (ICAppUpdate*)shared;

- (NSString*)version;

/*更新*/
- (BOOL)hasUpdate;
- (BOOL)hasDeprecated;

- (BOOL)isSkipedVersion;
- (void)skipLatestVersionTip;

- (void)checkAppUpdateFinished:(UpdateBlock)success failure:(UpdateBlock)failure;

- (void)showUpdateAlert;
- (void)showForceUpdateAlert;

@end
